<div class="fm-content">
  <div class="title">
    <i nz-icon [type]="'desktop'"></i>
    &nbsp;&nbsp;Android端构建
  </div>
  <div class="work">
    <div class="tool">
      <div class="left">
        <input nz-input placeholder="名称" class="fm-input" [(ngModel)]="fs.queryObject['display:like']" />
        <nz-button-group>
          <button nz-button nzType="primary" (click)="fs.loadData(true)">查询</button>
          <button nz-button (click)="fs.resetQueryObject() && fs.loadData(true)">重置</button>
        </nz-button-group>
      </div>
    </div>

    <nz-table nzSize="middle" nzShowSizeChanger [nzShowPagination]="false" [nzFrontPagination]="false"
      [nzData]="fs.datas" [nzLoading]="fs.isLoading || fs.isDeleing">
      <thead (nzSortChange)="fs.sort($event)" nzSingleSort>
        <tr>
          <th>名称</th>
          <th>类型</th>
          <th>备注</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
        <ng-template ngFor let-data [ngForOf]="fs.datas">
          <ng-template ngFor let-item [ngForOf]="fs.expandDataCache[data.id]">
            <tr *ngIf="(item.parent&&item.parent.expand)||!(item.parent)">
              <td [nzIndentSize]="item.level*20" [nzShowExpand]="!item.leaf" [(nzExpand)]="item.expand"
                (nzExpandChange)="fs.collapse(item,$event)">
                {{item.display}}({{item.id}})
              </td>
              <td>{{item.directoryTypeName}}</td>
              <td>{{item.info}}</td>
              <td>
                <a *ngIf="item.directoryType=='3'" class="form-button">列表构建</a>
                <a *ngIf="item.directoryType=='3'" class="form-button">编辑表单</a>
              </td>
            </tr>
          </ng-template>
        </ng-template>
      </tbody>
    </nz-table>
  </div>
</div>